import com.sun.org.apache.xerces.internal.impl.xs.SchemaNamespaceSupport;

import java.util.Scanner;

public class ScDemo {
    public static void main(String[] agrs){
        System.out.println("Welcome to you !");
        Scanner scan = new Scanner(System.in);
        int i=0;
        double j=0.00;
        if (scan.hasNextInt()){
            i=scan.nextInt();
            System.out.println("输出整形数据："+i);
        }else {
            System.out.println("输入的不是整数 ！");
        }
        System.out.println("请输入小数 ！");
        if(scan.hasNextDouble()){
            j=scan.nextDouble();
            System.out.println("输出双精度浮点型数据："+j);
        }else {
            System.out.println("输入的不是双精度浮点型数据");
        }
        scan.close();

    }
}
